package com.ankicoo.table.controller;

import com.ankicoo.common.response.ResponseBody;
import com.ankicoo.table.entity.ConfTablePO;
import com.ankicoo.table.mapper.ConfTableMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Description:
 *
 * @author : QCYANG
 * @date : 2021/11/30 15:35
 */
@RestController
@RequestMapping("/confTable")
public class ConfTableController {
    @Autowired
    private ConfTableMapper tableMapper;
    @GetMapping("/findAll")
    public ResponseBody<List<ConfTablePO>> findAllTable(){
        return ResponseBody.createBySuccess(tableMapper.selectAll());
    }
}
